home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
vb3
/
pro5
/
edit.doc
< prev
next >
Wrap
Text File
|
1993-03-25
|
80KB
|
1,631 lines
=======================================================================
| ***** *** *** *** ******* ******** |
| ** ** ** ** ** *** ** ** ** ** |
| ** ** ** ** *** *** ** ** ***** ** |
| ***** ** ** **** ** ** ** ** |
| ** ** ** ** *** ** ** ** ** ** |
| ** ** *** *** *** ** ** |
=======================================================================
_______
____|__ | (R)
--| | |-------------------
| ____|__ | Association of
| | |_| Shareware
|__| o | Professionals
-----| | |---------------------
|___|___| MEMBER
# D O S U T I L I T I E S #
*****************************************
| |
| RO-SOFT SYSTEMS (C)1989-93 |
|_______________________________________|
| |
| EDIT.EXE Ver 5.0 BY Robert Ossowski |
*****************************************
* MAKE YOUR COMPUTING EASY *
***********************************************************************
| ******** ****** *** *** ******** |
| ** ** *** *** ** |
| ** **** *** ** |
| ** ** *** *** ** |
| ** ****** *** *** ** |
| |
| ****** ***** ****** ******** *** ***** |
| ** ** ** ** ** ** ** ** ** |
| **** ** ** ** ** ** ** ***** |
| ** ** ** ** ** ** ** **** |
| ****** ***** ****** ** *** ** ** |
***********************************************************************
*****************************************
| RO-SOFT SYSTEMS (C)1989-93 |
|---------------------------------------|
| EDIT.EXE Ver 5.0 BY Robert Ossowski |
*****************************************
Table of Contents : Page
General description ............................ 1
Version history ................................ 2
Brief description of function key assignment ... 3
The file select screen description ............. 4
Cursor and edit control keys ................... 7
Text find and replace Alt-Q functions .......... 8
Text block control functions Alt-K ............. 9
Color text files ............................... 10
ANSI display & ANSI to .COM routine ANSI.COM ... 11
CTXT2COM & MTXT2COM color text display ......... 11
Line and character draw modes .................. 12
The menu system description .................... 13
Detailed function key assignments .............. 17
Pop-up programmer's calculator ................. 22
Pop-up calendar w/clock ........................ 23
Find and load file function .................... 24
Use of EDIT.EXE with FM.EXE .................... 25
Direct file record edit mode ................... 26
Should something go wrong ...................... 28
Page 1
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* MAKE YOUR COMPUTING EASY *
This program, EDIT.EXE, is a text editor that requires about 164k
Bytes of free memory to run. It allows editing any size text file
using all the standard editing functions, including search and block
controls. The text may be MONO (Normal) or COLOR text (Special text
files that retain the color attribute of all characters).
EDIT.EXE contains built in DOS execute functions, base conversion
calculator, calendar/clock w/alarm, key character and scan code
display, directory window file load/execute, mouse menus and draw,
file search and load using wild card names, and many more special
functions.
EDIT.EXE uses free space on your disk as a virtual memory block.
This allows editing any size file on a minimal 256k system as long
as there is disk space available for the necessary temporary files.
The file block functions, read in / write out block, will handle any
size data block, and set edit line length allows lines to 32K Bytes.
* There is no pre-run preparation, or installation necessary. You
may set up your own screen colors from the filename prompt or from
edit mode using function "Alt-F8".
Put EDIT.EXE in the current directory or in a directory that is in
the DOS search path. Enter the command "EDIT", at the DOS command
prompt, or select the EDIT function from the shell. The file name
to be edited may be entered with the command, or the program will
take you directly to the file select screen, with the current di-
rectory listed for filename selection.
* When you are through editing,just press the Esc key. The main menu
appears. Select (Q)uit, or press the Q key. The program prompts to
save edit changes if any were made, otherwise it displays a Y/N ?
EXIT prompt. Entering "Y" takes you back to DOS or your DOS shell
and an "N" takes you back to the file select screen.
* Upon edit save, previous backup file is deleted, edited file is
saved, and all temporary files are cleared. The original file now
has a file extent of .BAK, and has not been altered.
Page 2
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* Version History *
Version 5.0 * Major revision in large file paging method
Set any maximum edit line length up to 32 K Bytes
Read in /Write out /Append any size block file
Text display functions create packed .COM display files
Version 4.7 * Completed user display color customization
Improved block print function
Now distributed in a packed execute format
Text display functions will create self display .COM
Version 4.5 * Improve readability of manuals and .DOC files
Version 4.4 * New load option /x, Go direct file record edit mode
Alt-B, Get marked block for search find string
Alt-V, Enter file list offset for listing huge files
Version 4.3 * New function F5, Find and load file using wild card name
* New function Ctrl-F1, Save current edit state for reload
* New function Ctrl-T, Pop-up calendar/clock w/alarm
Version 4.2 * New function Ctrl-C, Built in base conversion calculator
* Create and execute .BAT files for program make function
* Mark/unmark files for auto load functions
* Auto load edit, text find, text find and replace
* Pass marked files to external command function
* Ctrl-S, Keyboard character and key scan code display
* Ctrl-V, Toggle file view modes text/hex
* /F and /A, Load search options for use within FM.EXE
* Ctrl-M, Set up to six different directory masks
* Alt-K F, Stores up to six different text search strings
Version 4.1 * Improved error detection and handling
Version 3.6 * Increase pathname length to 64 characters
Version 3.5 * Fix misc. problems incurred by new functions
Version 3.3 * Maximum edit file size increased from 4M to unlimited
* Mono text max characters per edit line now 80/160
* Corrections installed for CGA monitors
* Left display margin set, by F5 and auto
* List files from directory window
* Much improved search and replace functions
* Improved color text edit display
* Add Alt-K A function. Append block to file
Version 3.2 * Execute programs from within editor
* Function F2, Center text on cursor line
* Function Alt-F2, Left align next line to cursor position
* Display color text files routine
* Auto indent sets to current tab position
* Mouse & Alt-Arrow character draw
Version 3.0 * Mouse cursor control, line draw, menu control
* Menu function select
* Auto directory listing
* File select from directory window
* New color select and save
Page 3
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* FUNCTION KEY ASSIGNMENT *
* F1 * Display edit help screens
* Alt-F1 * Delete save edit state for current directory
* Ctrl-F1 * Save current dir. edit state for subsequent edit run
* F2 * Center text on current cursor (80 Char) line
* Alt-F2 * Left align next line to current cursor column
* F3 * From edit mode : Go load new data file
* F3 * From name entry : Go to file window select mode
* Alt-F3 * From edit mode : Return to previous text file
* Ctrl-F3 * From name entry : Go to select file to list/execute
* F4 * Switch console (Toggle between Alt. & Pri. consoles)
* F5 * From name entry : Go find file using wild card name
* F5 * From edit mode : Shift margin left eight columns
* Alt-F5 * Shift left display margin right eight columns
* Ctrl-F5 * Set maximum edit line length (Up to 32 K-Bytes)
* F6 * From file select window : Mark/unmark all files
* F6 * Toggle tab expand display on/off (Locate imbedded tabs)
* Alt-F6 * Toggle Ctrl/G display on/off (For ansi color control)
* Ctrl-F6 * Strip EOL space and replace other space with tabs
* F7 * Switch keyboard to draw edit mode (See draw key chart)
* Alt-F7 * Switch to draw erase line mode
* Ctrl-F7 * Toggle color text mode on/off
* F8 * Switch between 24/25 line screen edit
* Alt-F8 * Go to change screen colors menu
* Ctrl-F8 * Expand mono text file for color
* Shift-F8 * Select color attr. from current cursor position
* Ctrl-F9 * Save file as .ANX display file
* F10 * Save edit file changes
* Alt-F10 * Save text file as a .HLP or .CLP help file
* Ctrl-F10 * Save file as .ANS (Ansi coded display file)
* Shift-F10 * Save file as .TYP a DOS typable file
* Esc * Exit from current function
* Alt-B * Get marked block for search find string
* Alt-K * Get text block control commands
* Alt-Q * Get text find and replace commands
* Alt-L * Get file line number to and go to that line
* Ctrl-C * Run built in base conversion calculator
* Ctrl-M * Set up to six different directory masks
* Ctrl-S * Run keyboard character and key scan code display
* Ctrl-T * Display built in pop-up calendar/clock w/alarm
* Alt-V * Set file list offset for viewing very large files
* Ctrl-V * Toggle file view modes text/hex
Page 4
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* MOUSE CONTROL *
* Special mouse control functions now incorporated in EDIT.EXE
* Right button .... = * Always the Esc key
* Left button ..... = * In edit mode .... = Disabled
* At Y/N prompt ... = "Y" key
* At any select ... = Enter key
* In line draw .... = Toggle double/single line
* In char draw .... = Go get new character
* Both buttons .... = * At name entry ... = F3 key
* At file select .. = "\" key
* At Y/N prompt ... = "N" key
* From menu mode .. = "Q" key
* In view file .... = Toggle hex/text listing
* In edit mode .... = Turn mouse draw ON
* In mouse draw ... = Toggle line/char draw
* FILE SELECT DIRECTORY WINDOW *
* Upon entering the files select screen, the cursor is on the text
entry line. Here you may enter a filename or change directories
to get a new list. Edit controls Left/Right Arrow, Home, End, and
Back Space are active. List controls Up/Down Arrow, PgUp, PgDwn,
are active.
Pressing "Esc" key or left mouse button at the file name entry
takes you to the following select menu. When on any menu line you
make selection by entering the letter in ( ) or by moving high-
light to the desired choice and pressing the "Return" key or the
left mouse button. All of these functions are available from the
keyboard when on the name entry line.
| (S)elect| (F)ind |(E)xe/Lst| (C)alc | (T)ime | (M)ask | (L)enTog| (Q)uit|
| (S)elect | F3 * Go into file select mode in the directory window
| (F)ind | F5 * Search disk for files using wildcard name characters
|(E)xe/Lst | Ctrl-F3 * Go into file execute/list mode in the dir window
| (C)alc | Ctrl-C * Call up the built in base conversion calculator
| (T)ime | Ctrl-T * Call up the built in calendar/clock
| (M)ask | Ctrl-M * Set/Select up to six different dir listing masks
| (L)enTog | Ctrl-F5 * Toggle maximum characters per line, 160/80
| (Q)uit | Q * Exit edit file select
Page 5
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* FILE SELECT DIRECTORY WINDOW *
The default directory listing mask is *.* for all files. You may
set up to six different masks using the Ctrl-M function. When in
this function the available masks are selected with the up/down
arrow keys. You may set up your custom display colors from the
name entry prompt using the "Alt-F8" function control.
When a "\" is entered in the pathname, automatic search for sub-
directories is performed and listed. To get the file listing,just
press "Return" or right mouse button.
* Pressing the "F3" function key or both mouse buttons takes you to
the file select window. In this mode the highlighted file or sub-
directory may be selected by pressing the "Enter" key or the Left
mouse button. Highlight may be moved using the cursor controls or
mouse movement.
When in this mode you may mark/unmark files using the + & - keys,
or "F6" function key to mark/unmark all files. If you have marked
files, upon loading a file, you will be prompted for one of four
auto-load features available. These are as follows :
| (E)dit Files | (F)ind String| (R)eplace Str|e(X)ternal Opt| (Q)uit |
| (E)dit Files | Load each marked file for normal editing
| (F)ind String| Load and locate text string in each file for editing
| (R)eplace Str| Load, locate, and replace text strings in each file
|e(X)ternal Opt| Enter a command function for each file to be Passed to
| (Q)uit | Abort auto-load function and unmark files
Page 6
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* FILE SELECT DIRECTORY WINDOW *
To select a new directory or drive, press "F3" key, or Both mouse
buttons. In this mode, using the mouse to position cursor under a
"\" and pressing both mouse buttons, sets that directory, for sub
dir search. This gives select control of any file on your system
to the mouse and the keyboard.
* Pressing the "Ctrl" & "F3" keys from the filename entry line sets
a third select mode. In this select mode, the selected file will
be either listed or called for execution, depending on the file
type. If the file is executable, you will be prompted for command
options. If none, just press "Enter".
You may also mark files in this mode for the auto-load features
mentioned above to be entered upon return from file execution.
* This is an example of the filename select screen :
******************************************************************************
| EZTEXT * Full Screen Text Editor * (C)1992 By Robert Ossowski * |
| |
| | C:\TASM\WORK\*.* --------------------------------------------| |
| | LABEL README README-Z EZTEXT ANS | |
| | FILMAN ANS LOGO ANS LOGO1 ANS ROSOFT ANS | |
| | ALLOC ASM ANSI ASM ANSIDRV ASM ATSIZE ASM | |
| | BUTSTAT ASM CALC ASM CGASET ASM CHECKID ASM | |
| | CHKFRAG ASM CHKROOT ASM CHNGCON ASM CHNGMENU ASM | |
| | CLK1 ASM CLS ASM COLRTEXT ASM DDIR ASM | |
| | DEFRAG ASM DEMO ASM DEMOS ASM DISKSCAN ASM | |
| | DOSCOMM ASM DOSHELP ASM DOSHELPM ASM EDIT ASM | |
| | EDITBLOK ASM EDITCHAR ASM EDITDAT ASM EDITEQU ASM | |
| | EDITFILE ASM EDITQ ASM EQUIP ASM FILEIO ASM | |
| |- Files -| , ,PgUp/Dwn= List| F3,Ctrl-F3 = Select| Esc=Exit -| |
| |
| Enter File Name * C:\TASM\WORK\.................................... |
| |
| File pathname may be up to forty-eight characters long as indicated by dots|
|Entry may contain disk identifier A:, C:, etc., directory \DOS\, etc., and a|
|filename of eight characters max + a file extent (i.e. C:\MYDIR\MYFILE.DAT)|
|To switch to highlight edit select mode, press the F3 function key or both |
|mouse buttons. For execute / list select mode, press Ctrl-F3. |
| |
| TEXT EDITING FILE DIRECTORY |
|TEXT LIST Load New File Chr 160|
******************************************************************************
Page 7
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* CURSOR MOVEMENT COMMANDS *
CHARACTER, Go left one ............... = Alt-S or left arrow
CHARACTER, Go right one .............. = Alt-D or right arrow
CHARACTER, Insert/Overwrite toggle ... = Insert
CHARACTER, Set new color ............. = Ctrl-left or Ctrl-right arrow
WORD, Go left one .................... = Ctrl-left arrow
WORD, Go right one ................... = Ctrl-right arrow
LINE, Go up one ...................... = Alt-E or up arrow
LINE, Go down one .................... = Alt-X or down arrow
LINE, Go to beginning of ............. = Home
LINE, Go to end of ................... = End
LINE, Restore current or just deleted = Alt-Q L
LINE, Go to marked (0-9) ............. = Alt-Q(n)
LINE, Mark place (0-9) ............... = Alt-K(n)
LINE, Scroll screen up pne ........... = Alt-W
LINE, Scroll screen down one ......... = Alt-Z
LINE, Go to file line number ......... = Alt-L (number)
LINE, Auto indent toggle ............. = Shift-Tab
LINE, DRAW up/down ................... = Alt-Up/Down arrow
LINE, DRAW left/right ................ = Alt-Left/Right arrow
LINE, Set place marker ............... = Alt-K (0-9)
LINE, Find & go to place marker ...... = Alt-Q (0-9)
PAGE, Go up one screen ............... = Alt-R or Page Up
PAGE, Go down one screen ............. = Alt-C or Page Down
PAGE, Go to first screen position .... = Ctrl-Home
PAGE, Go to last screen character .... = Ctrl-End
FILE, Go up one 32K Byte page ........ = Ctrl-Page Up
FILE, Go to end of next 32K page ..... = Ctrl-Page Down
INSERT & DELETE COMMANDS
TAB, Insert one eight character ...... = Alt-I or Tab
LINE, Insert one ..................... = Alt-N or Enter
BLOCK, Go read text file ............. = Alt-K R
CHARACTER, Delete one at cursor ...... = Delete
CHARACTER, Delete one left of cursor . = Alt-H or BackSpace
WORD, Delete one right of cursor ..... = Alt-U
LINE, Delete current cursor .......... = Alt-Y
LINE, Delete to end of current cursor. = Alt-Q Y
BLOCK, Delete marked text ............ = Alt-K Y
Page 8
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* TEXT FIND AND REPLACE *
The Alt-Q command controls handle location and replacement of text
within current edit file. For the Alt-Q F, A, and R functions, you
will be prompted for a text string input to match for locating and
then for the search options input. If you selected the Alt-Q R func-
tion, replace text string, you will then be prompted for the replace-
ment text string. These text strings and options will be retained
for use again when you select one of these functions.
TEXT Find string ........... = Alt-Q F
TEXT Find & replace string . = AlT-Q A
TEXT Repeat last find ...... = Alt-Q R
* TEXT SEARCH OPTIONS *
Search whole file ...... = G : If you enter a G on the option line
the search is applied to the complete file from beginning
to end. If No G option is entered the search begins at the
current cursor position.
Search backwards ....... = B : If you enter a B on the option line
the search starts at current cursor position and moves back
towards the beginning of the file.
Local Search In Block .. = L : If you enter an L on the option line
the search is applied only to the currently marked block of
text.
Search Number of Times . = (n) : A number entered on the option line
will initiate repeated searches that number of times. At the
end of repeats the cursor will be located at the last text
find position in the file. The number entry may not exceed
65535. A running total of finds is displayed.
Replace Without Asking . = N : The Alt-Q R Function normally locates
the text string, displays that file location on screen- with
located text string highlighted, and prompts for a Y/N entry
asking if you want this string replaced. If you enter an N
on the option line, this prompt is by-passed and a running
total number of replacements is displayed.
Ignore Upper/Lower Case = U : For the normal text string search the
letters are matched letter for letter(i.e. a "U" equals "U",
a "u" does not equal "U"). If you enter a "U" on the option
line, upper and lower case is ignored, and a "u" equals "U",
a "U" equals "U". The text string will be matched letter for
letter, ignoring case.
Page 9
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* BLOCK CONTROL COMMANDS *
SET block BEGINNING . = Alt-K B : These two commands set the start
SET block END ....... = Alt-K K : and end block parameters. The text
between these two markers will be highlighted on the display
screen. These markers may also be set using the mouse or the
Up/Down arrow keys or by selecting Mark block from the block
menu. In going to the next 32K file page in a large file the
normal copy /move /delete markers will disappear and must be
reset, but the file read /write markers are retained so that
you can page through the file to set any size text block for
these functions.
COPY block .......... = Alt-K C : Inserts a copy of the marked text
in the file at the current cursor position.
MOVE block .......... = Alt-K V : Saves the marked text in a buffer,
deletes marked text from file, then inserts the text back
into the file at the current cursor position.
DELETE block ........ = Alt-K Y : Removes marked text from the file.
SAVE block in buffer. = Alt-K S : Stores currently marked text in a
buffer for later retrieval.
GET block from buffer = Alt-K G : Retrieves previously saved text
from the buffer and inserts it into the file at the current
cursor position.
READ file from disk . = Alt-K R : Reads a text file and inserts the
text into the current edit file at current cursor position.
This file may now be of any size needed.
WRITE block file .... = Alt-K W : Writes the currently marked text
out to a specified file. This text replaces anything that
may have been in an existing file. If the specified file
does not exist, one will be created.
APPEND block to file = Alt-K A : Writes the currently marked text
out to a specified file. This text is added to anything
that was previously in the file.
COLOR FILL block .... = Alt-K F : For color text only. The marked
texts color attribute will be changed to the current color
attribute.
PRINT block ......... = Alt-K P : Output the marked text to the
printer port LPT1.
HIDE block .......... = Alt-K H : Remove any text block marks.
Page 10
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* COLOR TEXT MODE *
Editing Color Text : With the advent of the current EGA/VGA monitors
colored text display has become very useful. This editor allows you
to edit and re-color text files. Each file loaded is checked for
non-text null characters. If detected, you will be asked if this is
a color text file. If you enter a "N" at this prompt, the file is
assumed to be a special, non-text file, in which you wish to change
any text found. Using a combination of color, text, and draw char-
acters, you can create some very pleasing displays. See the sample
color text file, ROSOFT.FIL, for an example of color display gener-
ation.
Color Text may be converted into an ANSI coded displayable file using
the Ctrl-F10 function. This file is given the same name as the edit
file, with a name extension of .ANS. Each Ctrl-G character found
in the file, toggles ANSI code generation Off/On. These are insert-
ed using the Edit Draw Mode. Study the sample .ANS file carefully.
If you load the DOS "ANSI.SYS" driver, this file can be displayed
using the DOS "TYPE" command, or you can use the supplied routine,
ANSI.EXE, for display. ANSI.EXE has the optional speed control or
continuous display functions. See Next Page.
Color Text Control Functions :
* Ctrl-F7 * Toggle color text mode on/off (See Page 20)
* Alt-F8 * Go to change screen colors menu (See Pages 16 & 20)
* Ctrl-F8 * Expand mono text file for color (See Page 20)
* Shift-F8 * Select color attr. from current cursor position(Page 20)
* Alt-F10 * Save text file as a .HLP or .CLP help file (See Page 21)
* Ctrl-F10 * Save file as .ANS (Ansi coded display file)(See Page 21)
* Ctrl-Arrow* Using the Ctrl-Arrow keys to pass over text will change
the color of that text to the currently selected screen
color attribute.
* Alt-K F * The block marked texts color attribute will be changed
to the current selected screen color attribute.
Page 11
* COLOR TEXT DISPLAY *
* ANSI.COM * This routine displays ANSI coded text files. It will
recognize and execute all standard ANSI control codes. Additional
options of continuous display, display speed, pause display, and
create a packed .COM self display file are supported.
These options may be entered as command options(i.e. ANSI ROSOFT.ANS
/3/c), will display ROSOFT.ANS continuous at rate number three. Add
a "/n" and ANSI.COM will create an ROSOFT.COM file with continuous
display at rate number three.
When generating a source text file with EDIT.EXE you may insert the
following display control characters in the file. These characters
are used by the ANSI store function of EDIT.EXE, CTXT2COM.COM, and
MTXT2COM.COM to control the text display.
Ctrl-G "07h" : Toggle character display off/on
Ctrl-H "08h" : ANSI Back Space and Text Toggle auto line clear on/off
Ctrl-K "0Bh" : Clear current cursor line
Ctrl-L "0Ch" : Clear screen and home cursor
Ctrl-R "12h" : Load new display rate (Must be followed by rate number)
Ctrl-S "13h" : Halt display till a "Space" is entered
Tab "09h" : Go to next standard DOS eight character tab position
CrLf "0Dh,0Ah" These are inserted by EDIT.EXE for end of line.
The following entries from the keyboard are recognized :
* Esc * Press "Esc" key to terminate display
* 1-0 * Press number keys to control display rate (0=Fastest)
* Space * Press space bar to stop / start display
If you enter the command "ANSI", the routine will give you the
following prompt :
To display an ANSI coded file or create a self displaying .COM file.
Enter filename ? ...............................
Entry format : drive:\yourdir\filename.extent /speed /continue /new
For /speed option : (/0 = System speed), (1-9 = Bauds 600-1M),
/c = Redisplay till other than 0-9 pressed.
/n = Create a self displaying .COM routine.
Press "Esc" to exit !
* CTXT2COM.COM & MTXT2COM.COM * These routines support all the same
functions as ANSI.EXE, but use the text files directly. CTXT2COM
works with color text and MTXT2COM works with mono text files.
MTXT2COM will display mono text in the selected screen color.
These routines allow continuous display of multi-page text files
that you have created using EDIT.EXE. For example, you may create
a sales or safety presentation to be displayed on an idle system.
Page 12
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* DRAW MODES *
The line draw mode is always available using the Alt-Arrow keys or
Alternate keys for line draw : These were added because on an XT
system, the Alt-Arrow functions don't exist.
Alt-Up arrow = Alt-T
Alt-Down arrow = Alt-V
Alt-Left arrow = Alt-F
Alt-Right arrow = Alt-G
Function Key F7 switches the keyboard to draw edit mode. See the draw
key chart using function F1 (display help) for keyboard definitions.
The chart is not included here because many of the characters are
not printable. In this mode, all the non-control key ascii codes
have 80H added to them in order to produce all the extended ascii
codes for display and inclusion in your text file. Selecting any
draw option from the menu system also sets the keyboard draw mode on.
To turn keyboard draw off, press the Esc key.
All draw functions, except keyboard entry, fill each line to maximum
character length with space. When drawing in mono text, be careful
to select proper line length (80 or 160), using function Ctrl-F5.
Color text will always be automatically set to 80. If you wish to
remove excess space fill from the file after drawing, use the Ctrl-
F6 function.
Function Keys Alt & F7, switch to draw erase line mode. In this mode,
the line draw keys remove line characters from the edit file.
Pressing keys Ctrl & D, toggles between line and character draw. The
character draw mode uses a single selected character for all of the
draw key functions. You may select any of the 256 characters that
DOS supports from the character select window.
Mouse draw control : When mouse draw is on the mouse motion duplicates
Alt-Arrow keys.
* Both buttons * From edit mode ... = Turn mouse draw on
* In mouse draw .... = Toggle line/char draw
* Left button * In mouse line draw = Toggle double/single line
* In mouse char draw = Go get new character
* Right button * Exits mouse draw mode
Page 13
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* MENU SYSTEM *
* Pressing the Esc key or right mouse button while in edit mode takes
you to the editors function select menu system. While in this menu
system, pressing both mouse buttons selects (Q)uit from the current
active menu line.
* Active entry on all menus are highlighted.
* The cursor at the end indicates active menu line.
* Highlight is moved using mouse or left and right arrow keys.
* The up arrow key or mouse movement will get next menu if available.
* The down arrow key or mouse movement will back out of menu system.
* Highlighted selection is made by pressing left mouse button or Enter
key. Selection may also be made by pressing the key outlined (?).
* Selecting (Q)uit from any menu except main returns to edit mode.
* Pressing Esc key or right mouse button returns to previous menu.
* When on any menu pressing both mouse buttons selects (Q)uit.
* This is the main function select menu :
* Pressing Esc key or right mouse button here returns you to edit mode.
* Selecting (Q)uit from this menu exits the editor.
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit |
* (F)ile * Get the edit file functions menu.
* (B)lock * Get the edit block functions menu.
* (S)earch* Get the edit search functions menu.
* (E)dit * Get the edit control functions menu.
* (M)isc * Get the miscellaneous edit functions menu.
* (C)olor * Get the color change options menu.
* (Q)uit * Exit the editor.
* When you select (F)ile, you then get this menu :
| (S)ave | (L)oad | (P)rev. | (R)ead | (W)rite | (A)ppend| (E)xpand|s(T)rip|
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit |
* (S)ave * Get the edit file save option menu.
* (L)oad * Go to file directory to load a new file.
* (P)rev. * Leave current file and return to previous file.
* (R)ead * Go to file directory to read a file into current file.
* (W)rite * Go to file directory to get file to write marked block to.
* (A)ppend* Go to file directory to get file to add marked block to.
* (E)xpand* Expand current file for color text.
* s(T)rip * Strip EOL spaces and fill blank areas with tabs.
Page 14
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* MENU SYSTEM *
* When you select (S)ave, you get this menu :
| (E)dit | (A)nsi | (H)elp | (T)ype | a(N)sx | (Q)uit |
| (S)ave | (L)oad | (P)rev. | (R)ead | (W)rite | (E)xpand| s(T)rip | (Q)uit|
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit |
* (E)dit * Save current active edit file.
* (A)nsi * Generate and store an ANSI version of current edit file.
* (H)elp * Generate and store a file for DOSHELP.EXE of current file.
* (T)ype * Generate and store a DOS typable file of current edit file.
* a(N)sx * Generate and store a @?? type ANSI file of current file.
* (Q)uit * Return to edit mode.
* When you select (B)lock from the main menu, you get this menu :
| (M)ark | (C)opy | (M)ove | (S)ave | (G)et | (D)elete| (H)ide |(F)ill|
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit |
* (M)ark * Go to mark block in edit file mode.
* (C)opy * Copy marked block to current cursor position in edit file.
* (M)ove * Moved marked block to current cursor position in edit file.
* (S)ave * Store marked block in save buffer for later retrieval.
* (G)et * Retrieve data from save buffer to current cursor position.
* (D)elete* Remove marked block from edit file.
* (H)ide * Un-mark data block.
* (F)ill * Fill marked block with current selected screen color.
* When you select (S)earch from the main menu you get this menu :
| (F)ind |(R)eplace| (L)ine# |(S)et Mrk|(G)o Mark| (Q)uit |
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit |
* (F)ind * Input text string to locate in edit file.
*(R)eplace* Input string to locate and string for replacement.
* (L)ine * Go to designated line number in edit file.
*(S)et Mrk* Get mark number 0-9 and set to current cursor position.
*(G)o Mark* Get mark number 0-9 and go to that location in edit file.
* (Q)uit * Return to edit mode.
Page 15
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* MENU SYSTEM *
* When you select (S)et or (G)o mark, you get this menu :
|0|1|2|3|4|5|6|7|8|9|Q|
| (F)ind |(R)eplace| (L)ine# |(S)et Mrk|(G)o Mark| (Q)uit |
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit |
* When you select (E)dit from main menu, you get this menu :
* Cursor returns to edit file location on screen.
| (P)gDwn| Pg(U)p |(S)crlDwn| s(C)rlUp|(R)estLin|(D)elLine| (G)oLine| (Q)uit|
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit |
* (P)gDwn * Go down 24/25 lines in edit file.
* Pg(U)p * Go Up 24/25 lines in edit file.
*(S)crlDwn* Scroll edit file display down one line.
* s(C)rlUp* Scroll edit file display up one line.
*(R)estLin* Restore current edit line if changed.
*(D)elLine* Remove current edit line from file.
* (G)oLine* Go to specified line number in edit file.
* (Q)uit * Return to edit mode.
* When you select (M)isc from main menu, you get this menu :
| (H)elp |(I)nsert | (D)raw |(L)ine25 |(T)ab exp|(A)utoInd| (C)trl G|(Q)uit|
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit |
* (H)elp * Go display function help pages.
*(I)nsert * Toggle text insert mode on or off.
* (D)raw * Get draw options menu.
*(L)ine25 * Toggle 24/25 line edit mode.
*(Tab exp * Toggle tab display ON/OFF.
*(A)utoInd* Toggle (Auto tab column on carriage return) ON/OFF.
* (C)trl G* Toggle Ctrl/G display ON/OFF.
* (Q)uit * Return to edit mode.
* When you select (M)isc2 from (M)isc menu, you get this menu :
| (C)alc | (T)ime |(K)eycode| ctrl(G) | (Q)uit |
| (H)elp | (D)raw | (M)isc2 |(I)nsert |(L)ine25 |(T)ab exp|(A)utoInd|(Q)uit|
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit |
* (C)alc * Call built in calculator
* (T)ime * Call built in calandar/clock
*(K)eycode* Call key character and scan code display
* ctrl(G) * Toggle Ctrl/G display ON/OFF.
* (Q)uit * Return to main menu
Page 16
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* EDIT MODE MENU SYSTEM *
* When you select (D)raw from (M)isc menu you get this menu :
| (S)ingle| (D)ouble| (C)har. | (E)rase | (Q)uit |
| (H)elp |(I)nsert | (D)raw |(L)ine25 |(T)ab exp|(A)utoInd| (C)trl G|(Q)uit|
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit |
* (S)ingle* Enter single line mouse draw mode.
* (D)ouble* Enter double line mouse draw mode.
* (C)har. * Enter character mouse draw mode.
* (E)rase * Enter erase line mode.
* (Q)uit * Return to text edit mode.
* When you select (C)olor from main menu you get this menu :
|(S)creen| (M)enu |(D)irLst|(H)ighLt|m(E)ssge|(B)lock |b(O)rder|s(T)ore |Quit|
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit |
*(S)creen* Go set new screen display, or text entry, color.
* (M)enu * Go set new color for menus.
*(D)irLst* Go set new display colors for directory window.
*(H)ighLt* Go set new display high lighting color.
*m(e)ssge* Go set new color for messages.
*(B)lock * Go set new color for edit block marking.
*b(O)rder* Increment current screen border color.
*s(T)ore * Save new colors permanent.
* (Q)uit * Return to edit mode.
* Upon making a selection the following screen appears with cursor on
the present color block in the color window :
******************************************************************************
| ! Select this color ! |
| **********| To set New Screen Colors |********** |
| |00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | |
| |10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F | |
| |20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F | |
| |30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F | |
| |40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F | |
| |50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F | |
| |60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F | |
| |70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F | |
| |80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F | |
| |90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F | |
| |A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF | |
| |B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF | |
| |C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF | |
| |D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF | |
| |E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF | |
| |F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF | |
| *| Select =Arrow Keys| Enter = Set | Esc = Exit |* |
| (C)ursor| (S)creen|(M)essage| bloc(K) | (B)order| s(T)ore | (Q)uit | |
| (F)ile | (B)lock | (S)earch| (E)dit | (M)isc | (C)olor | (Q)uit | |
******************************************************************************
Page 17
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* FUNCTION KEY ASSIGNMENT *
* F1 * Display edit help screens
The F1 key is used for calling on help display for the current
function that you are using in any RO-SOFT program. When pressed,
this function will display any available help information on the
current function.
* Alt-F1 * Delete save edit state for current directory
Use the Alt and F1 keys to delete the save edit state file for
the current directory.
* Ctrl-F1 * Save current edit state for subsequent edit run
The Ctrl and F1 keys are used to save the current state of edit.
All the current conditions are saved in a file named "EDIT.SAV". If
this file is encountered the next time you run "EDIT.EXE", the saved
edit conditions will be loaded and it will be as if you never exited.
You may have a different save state file in each directory.
* F2 * Center text on current cursor (80 Char) line
The F2 key is used to perform an eighty column centering of the
text on the current cursor line. The cursor advances to the next line.
Holding the F2 key down will repeatedly center next line.
* Alt-F2 * Left align next line to current cursor column
The Alt and F2 keys are used to left align the next line to the
current cursor column. Holding keys down will repeatedly align next
text line to the same column.
* F3 * From Edit Mode : Go load new data file
From Edit Mode, the F3 key is used to request loading a new text
file in to be edited. When pressed, the program will prompt to save
edit changes if any have been detected. Enter a "Y" if you wish to
have the current changes saved. You are then transferred to the file
select screen with entry cursor position on the filename entry line.
* F3 * From Name Entry : Go to file window select mode
Pressing the F3 key from the filename entry line will activate
the file select window. The highlighted file may then be loaded by
pressing the left mouse button or the "Enter" key.
Page 18
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* FUNCTION KEY ASSIGNMENT *
* Alt-F3 * Return to previous text file
When in the edit mode, pressing the Alt & F3 keys informs the
program that you want to return to a previously edited file. The edit
state of the current file will be retained so that you can return to
the same file location that you left using this function. You will be
prompted for saving changes in the current file if any were detected.
If a previous file had been exited, it will be loaded, and the cursor
will be at the location in that file that you were at when you exited.
If no previous file had been loaded, you will be prompted for a new
filename entry. You may toggle back and forth between two files using
this function, passing blocks of data from one to the other using the
block control commands "Alt-K S" and "Alt-K G".
* Ctrl-F3 * From name entry : Go to select file to list/execute
When on the filename entry line, pressing the Ctrl & F3 keys will
put you in "Select List/Execute" file mode. The program will determine
if the highlighted filename can be executed or just listed and display
the results on the file select control line. The file types ".EXE",
".COM", and ".BAT" can be executed. Upon selection, if the file is
not one of these types, it will be listed on the screen with the view
file control functions enabled. If the file is executable, you will be
prompted for command option entry. If you have none, then just press
"Enter". The file will be executed as if you had run it from the DOS
command line. Upon execute termination or exit from file view mode of
the program, you will be returned to the editor.
* F4 * Switch console (Toggle between Alt. & Pri. consoles)
If you are a programmer, as I am, you probably have both a color
and a mono monitor on your system. Pressing the F4 key allows you to
switch back and forth between the two. This is useful for viewing one
part of a file while editing another.
* F5 * Shift left display margin left eight columns
* Alt-F5 * Shift left display margin right eight columns
* Ctrl-F5 * Switch between 80/160 character line edit mode
Since the editor now supports a 160 character text line, the screen
must be shifted left to view the right most eighty columns. The F5 and
Alt-F5 keys allow for manual shifting of the display screen. Margin
shifting also occues automatically as the edit column goes beyond the
right edge of your screen.
Page 19
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* FUNCTION KEY ASSIGNMENT *
* F6 * Toggle tab expand display on/off
Pressing the F6 key will cause any tab character in the data to be
displayed as an extended ascii character instead of being expanded and
filled with spaces. Pressing F6 again will return to normal display.
* Alt-F6 * Toggle Ctrl/G display on/off
When creating text files for ansi generation, the Ctrl/G character
code may be inserted into the text using the keyboard draw mode. This
code is used to toggle ansi code generation off/on so that the portion
of text, from OFF mark to ON mark, will not appear in the ansi file.
Pressing the Alt & F6 keys toggles off/on, the screen display of these
characters, while you are editing the file.
* Ctrl-F6 * Strip EOL space and replace other space with tabs
Pressing the Ctrl & F6 keys tells the program to remove any excess
fill space from the text file. All end of line space is deleted, and
imbedded spaces will be replaced by tab characters, where applicable.
An F10 function (save edit) should be performed following execution
of this function.
* F7 * Switch keyboard to draw edit mode (See draw key chart)
Pressing the F7 key switches the program into a draw mode that
gives you access to all of the displayable extended ascii characters.
These are listed in the F1 help display. Once in the draw mode, then
pressing F7 again, toggles between double and single line draw using
the Alt-Arrow keys. The current line draw mode is always available in
normal edit mode using these keys.
Mouse draw mode may also be selected while in the normal edit mode
by pressing both mouse buttons.
* Alt-F7 * Switch to draw erase line mode
Pressing the Alt & F7 keys switches the program into an erase
line mode using the Alt-Arrow keys or Mouse Draw Mode.
Page 20
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* FUNCTION KEY ASSIGNMENT *
* Ctrl-F7 * Toggle color text mode on/off
Pressing the Ctrl and F7 keys toggles the display mode between
mono and color. Use this function omly on empty files. This function
was added to allow loading color text files (files that the editor did
not sense as being color text when loaded) using the block file read
function "Alt-K R". To use this function, create an empty file by
entering a filename that doesn't exist, press Ctrl & F7 keys to switch
to color mode, then use the block read to load the color text.
* F8 * Switch between 24/25 line page edit
Pressing the F8 key toggles the display between twenty-four and
twenty-five line text display. This also controls the ANSI file gen-
eration for 24 or 25 line display. While in 25 line mode, the control
line is not displayed except for special messages like color text, or
draw mode.
* Alt-F8 * Go to change screen colors menu (See Page 16)
Pressing the Alt and F8 keys takes you to the change colors menu.
New screen, menu, text block, and border colors may be selected and
stored if you want the change permanent.
* For color text files, new screen color select does not affect text
color. When you enter text, or use the Ctrl/Arrow keys, the text will
be in the selected color.
* Ctrl-F8 * Expand mono text file for color
Pressing the Ctrl & F8 keys will cause the current data file to
be expanded to contain color attributes for each character. You can
then re-color the text as you wish using the Alt-F8 (Change Color)
function, and Ctrl-Arrow keys to re-color.
* Shift-F8 * Select color attribute from current cursor position
Pressing the Shift & F8 keys when editing a color text file will
select the color attributes at the current cursor position, to be app-
lied to any text entered, or to any text passed using the Ctrl-Arrow
keys.
Page 21
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* FUNCTION KEY ASSIGNMENT *
* F10 * Save edit file changes
Pressing the F10 key at any time during an edit session will cause
the current data file to be saved, and original file to be renamed to
be the backup file. You remain in the same position of current edit
session.
* Alt-F10 * Save text file as a .HLP or .CLP help file
Pressing the Alt & F10 keys at any time will cause the current
data file to be saved as a help type file with an extent .HLP for mono
or .CLP for color text. These files are accessible by the pop-up help
routine supplied in my utilities package.
* Ctrl-F10 * Save File As .ANS an Ansi Display File
Pressing the Ctrl & F10 keys at any time will convert the text
file to an ANSI coded file and store with an extent of .ANS. The text
file remains intact. Clear screen & home cursor(Ctrl-L), and clear to
end of line (Ctrl-K) functions may be imbedded in the text file using
the draw-edit mode. You can toggle ANSI generation off & on by putting
a (Ctrl-G) in text file. This allows possible animated presentations.
A Ctrl-R, followed by a number (0-9), is recognized by my color text
display routines as a display speed change. You can create mono or
color files that can be listed on-screen using the DOS Type command.
Mono files do not need the ANSI.SYS driver if stored using (Shift-F10)
They are stored with an extent of ".TYP".
The RO-SOFT introduction is an example of an ANSI generated file.
The file ROSOFT.FIL is the edited color file used to create the file
ROSOFT.ANS. This file is displayed by the ANSI display routine,
ANSI.EXE. Use ANSI.EXE to display any ANSI file with option /1-9 for
simulated baud rates 1=600, 2=1200, etc., or option /c to repeatedly
display the file and changes rates when you press a number key. This
will give you an idea of what would be displayed when you transmitted
the file to a remote system. Or if you have ANSI.SYS loaded, you can
just tell DOS to type ROSOFT.ANS. Observe the ROSOFT.FIL by loading
it into the editor EDIT.EXE.
* Shift-F10 * Save File As .TYP (a DOS Typable File)
Pressing the Shift & F10 keys while editing mono text file will
remove carriage returns from any lines that extend to screen column
eighty and will store the text in a file with an extent of ".TYP" for
a file that can be displayed using the DOS type command. The text file
remains intact.
Page 22
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* POP-UP CALCULATOR *
* Ctrl-C * Pop-up a programmer's calculator with decimal, hex, octal,
and binary base conversion, bit shifting, and logical operator func-
tions. It has a 32-Bit number representation, and supports two decimal
place integer arithmetic calculations. Screen location may be changed
using the arrow keys. Position is retained until the program is either
unloaded or moved again.
Mixed-base calculations are supported and the +, -, *, and / func-
tions are conventional. Beware, though, of only integer mode calcu-
lations. Your fractions disappear, except in fixed two place decimal.
* Calculator control functions as follows *
* + * Add next number entered
* - * Subtract next number entered
* * * Multiply by next number entered
* / * Divide by next number entered
* = * Do selected operation
* F1 * Pressing F1 successively cycles through the different
base conversions of the number on the entry line.
* F2 * This key toggles fixed two place decimal on and off.
* F3 * Performs logical AND on current and next number entered.
* F4 * Performs logical OR on current and next number entered.
* F5 * Performs logical XOR on current and next number entered.
* F6 * Performs logical NOT (invert) on the current entry.
* F7 * Performs BIT shift left on current entry.
* F8 * Performs BIT shift right on current entry.
* F9 * Changes the SIGN of current entry.
* F10 * Clears the entry line.
* Shift-F10 * Clears the calculator.
* Arrows * Re-locatable pop-up screen position using arrow keys.
Page 23
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* POP-UP CALENDAR/CLOCK DISPLAY *
* Ctrl-T * This is a pop-up calendar display with a clock. You may set
the calendar to any month of any year using the arrow keys. The clock
only displays when the calendar is set to current (system) month.
The clock alarm may be set for the desired time of day. Enter alarm
time in 12 hour format as shown, terminated with "A" or "P'. Turn the
alarm off by any invalid character in alarm setting. You may turn off
the calendar display, leaving clock on screen with the Delete Key.
You may enter a message that will be displayed during alarm time.
To terminate the alarm enter Ctrl-T again.
Program functions: For calendar control.
Right Arrow . = Go forward one month
Left Arrow .. = Go back one month
Up Arrow .... = Go forward one year
Down Arrow .. = Go back one year
Ctrl/Rt Arrow = Get current month
Insert ...... = Enter alarm and message
Delete ...... = Exit calendar leaving the clock display
Page Up ..... = Move display up one line
Page Down ... = Move display down one line
Home ........ = Move display left one column
End ......... = Move display right one column
Ctrl/Home ... = Move display to far left
Ctrl/End .... = Move display to far right
Ctrl/Pg Up .. = Move display to top line
Ctrl/Pg Dwn . = Move display to bottom line
Esc ......... = Exit calendar display
Page 24
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* FIND AND LOAD FILE FUNCTION *
* F5 Locate File * This function inputs a filespec, searches all di-
rectories on drives, and reports all locations of matching files. The
filespec should contain a filename and file extent as required. Any
KNOWN letters of the name and wild card characters may be used. The
"?" may be substituted for any unknown character. The "*" indicates
all for either name or extent. The command options may be a drive
letter followed by a colon and a single digit number. The number
designates how many drives to search, starting at the input letter.
Entries may be as follows :
* *.dat A:4 * Find & list, all files with .DAT ext. drives A: thru D:
* dat.* D:1 * Find & list all files with name DAT on drive D:
* dat?????.* * Find & list all files beginning with DAT
* da???.* * List all files with a five letter name starting w/DA
* Default searches up to 10 drives starting with drive C:
* This is a sample listing supplied by this routine
Searching for file : *.DAT
C:\CIM\FAVORITE.DAT 375 8-29-91 7:43p
C:\SHARE32\SHELLHLP.DAT 39,791 6-27-91 8:23a
C:\SHARE34\SHELLHLP.DAT 43,598 8-29-91 1:15p
C:\TASM\SHELL\SHELLHLP.DAT 43,598 8-20-91 2:18p
C:\TASM\WORK\ASCII.DAT 26,621 6-25-90 5:57p
C:\TASM\WORK\BIOSINT.DAT 88,426 7-09-90 12:26p
C:\TASM\WORK\COMMAND.DAT 227,607 8-20-91 7:45p
C:\TASM\WORK\DISKS.DAT 50,715 8-02-90 7:51p
D:\TASM\WORK\DISKS.DAT 50,715 8-02-90 7:51p
D:\TASM\WORK\DOSINT.DAT 161,454 1-22-91 8:34a
D:\TASM\WORK\DOSSYS.DAT 116,680 10-13-90 2:26p
Press "Esc"/Load file, "Return"/Non-stop, "Space"/Next find
The routine Prompts at each found file for input until a "Return" is
entered. It then only stops at page end. Entering "Esc" will load the
last file listed into the editor.
Page 25
* EDIT.EXE * PROGRAMMERS TEXT EDITOR *
TEXT FIND AND REPLACE USING FM.EXE
********************************************************
| FILE MANAGER FM.EXE Ver 4.6 BY ROBERT OSSOWSKI |
********************************************************
* F8 Edit a File * Press The F8 key or left button to run your editor
and load the highlighted file for editing. Edit file must reside
in the DOS search path.
* ^O * Enter a DOS command for execution. Any command that can be run
from the DOS command line may be executed here. This is handy for
using file pack routines or for putting the current directory
listing into a file to be called in by the editor, etc.
* ^P * Pass marked files to command function. This is useful for per-
forming an operation on marked files only. If used in conjunction
with EDIT.EXE Ver 4.2 or later, it becomes very powerful. You
can enter "EDIT /F" and all marked files will be passed to the
text search function of the editor one at a time. After execution
of this command, a "Ctrl-X" may be entered at any entry stop to
terminate and return to FM.
Selecting the search find option with "EDIT /F" will prompt for a text
string entry and for search options when the first file is loaded,
then search for the entered string and enter the edit mode if the
text is found. You may then edit the file. Upon exiting, the next
marked file will be loaded and searched. You can use the "Alt-K S"
function to save a block of text which can then be pulled into the
next file loaded when the text string is found. Use the "Alt-K G"
block function to retreive the saved text.
Selecting the search "find and replace" option, with "EDIT /A" will
prompt for both "find" and "replace" strings, and search options, at
the first file load. On the search options line,enter a number large
enough to cover all occurrences expected in a single file. Entering
an "N" on options line following the number will find and replace
all occurrences of the "find" string in all marked files, stopping
only to report the number of replacements in each file. Without the
"N", it stops at each occurrence and asks if you want it replaced.
Page 26
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* Running EDIT.EXE using the /x option will invoke a completely
different edit mode. This mode is useful on DBASE type files,
and instant access on huge data files.
* File Record Parameter Entry Screen *
*****************************************************************************
| * DIRECT FILE RECORD EDIT FUNCTION * |
| |
| |
| For File C:\ALAD\IBMPCROU.DBF |
| |
| File Size 34,792 Bytes |
| |
| Enter record length ? 90 Max 1920 Bytes |
| |
| File header offset ? 322 Max 9999999 Bytes |
| |
| Enter first record ? 1 Max 9999999 Recs |
| |
| Number of records 383 Plus 46 Bytes |
| |
| |
| Press "F9" to get DBF file parameters, "Esc" to exit |
*****************************************************************************
* F1 help screen available for this function *
*****************************************************************************
| Controls available for direct file edit |
| |
| F1 = Display help page |
| F3 = Go get new file |
| F7 = Get hex char code |
| Insert = Get hex char code |
| F8 = Reset record parameters |
| F9 = Get DBF file parameters |
| F10 = Store current record |
| PgUp = Get previous record |
| PgDwn = Get next record |
| Arrows = Move cursor |
| End = Move to end of line |
| Home = Move to line start |
| Ctrl-C = Use calculator |
| Ctrl-S = View key char & scan codes |
| Ctrl-T = View calendar/Display clock |
| |
| Press any key to continue. |
*****************************************************************************
Page 27
***************************************
| EDIT.EXE PROGRAMMERS TEXT EDITOR |
***************************************
* DIRECT FILE RECORD EDIT FUNCTION *
Use this load option for rapid access to far out records in very
large data files. The editing support is rather limited, in that
the file size cannot be changed using this option. You may change
and store any data in the file with access to all 256 character
codes. This function was added mainly for access in data files
that may be too large and cumbersome to load into a normal editor
for fixing bad data. It uses direct file record access on both
read and write and only loads one record at a time. Use the F9
key at record length entry for getting length and header offset
of a DBF file from the file itself.
* Sample Record Edit Screen *
******************************************************************************
| |
| |
| |
|27208WARMBOOT.COM XJ.BOGHOSIAN 920219 128 16 5This nifty prog. will boot|
|the PC |
| |
| |
| |
| |
| |
| |
| |
| |
|C:\ALAD\IBMPCROU.DBF Rec# 377 Rec Len 90 Ofs 34,162 |
******************************************************************************
Page 28
* EDIT.EXE * PROGRAMMERS TEXT EDITOR *
Should a problem arise:
Because of the complexity of handling both mono and color text by
the same functions, you may find a way to end up with a messed up
display screen. If this occurs, first do a Ctrl-Page Up function.
This should correct the screen display. But if the display is still
messed up, exit the editor not saving changes . At any rate, you
will still have a backup file that was the file that you originally
read in to edit. This file will have the same name, but its extent
will be ".BAK".
If you have any questions that cannot be resolved any other way,
I can be contacted at :
RO-SOFT, c/o Robert Ossowski
7165 Kent Dr.
Baker, La. 70714
Ph. (504) 775-4116